package hrms.dao;

import hrms.entity.Recruitment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RecruitmentMapper {

    Recruitment findById(Integer id);
    List<Recruitment> findAllByDepartmentId(@Param("departmentId") Integer departmentId);
    List<Recruitment> findAll();
    void insertRecruitment(Recruitment recruitment);
    void updateRecruitment(Recruitment recruitment);
    void deleteRecruitmentById(@Param("id") Integer id);
    List<Recruitment> findByPage();
    List<Recruitment> findStatus0();
    void updateQuantity(Recruitment recruitment);
    void updateStatus(Recruitment recruitment);
}